<div th:fragment="atmBoHead">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
    <meta name="renderer" content="webkit" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, minimal-ui" />
    <meta name="copyright" content="ziyouziti.com" />
    <link href="/css/bootstrap.min.css" rel="stylesheet"/>
    <link href="/css/icons.css" rel="stylesheet"/>
    <link href="/css/core.css" rel="stylesheet"/>
    <link href="/css/components.css" rel="stylesheet"/>
    <link href="/css/bootstrap-table.min.css" rel="stylesheet"/>
    <link href="/css/foundation-datepicker.css" rel="stylesheet"/>
    <link href="/css/cc-base.css" rel="stylesheet" />
    <link href="/css/global.css" rel="stylesheet">
    <link href="/css/style.css" rel="stylesheet" />
    <script src="/js/jquery-1.10.2.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="/js/foundation-datepicker.js" type="text/javascript" charset="utf-8"></script>
    <script src="/js/foundation-datepicker.zh-CN.js" type="text/javascript" charset="utf-8"></script>
    <script src="/js/bootstrap-table.min.js"></script>
    <script src="/js/jquery.bs-table.js"></script>
    <script src="/js/vue.js"></script>
    <!-- 引入样式 -->
    <link rel="stylesheet" href="/css/ele.css">
    <!-- 引入组件库 -->
    <script src="/js/ele.js"></script>

    <title>ATM后台管理系统</title>

    <div class="container">
        <div class="dflx sbt aic">
            <div class="left aic">
                <a href="" class="logo"></a>
                <span class="welcome c333 f14">欢迎访问ATM后台管理系统</span>
            </div>
            <div class="right f14 c333">
					<span class="dropdown">
                        <a href="" class="dropdown-toggle profile" data-toggle="dropdown" aria-expanded="false">
                            <span th:text="${session.username}"></span>
                            <i class="md  md-keyboard-arrow-down"></i></a>
                        <ul class="dropdown-menu">
                            <li onclick="logout()"><a href="#"><i class="ti-power-off m-r-5"></i> 退出</a></li>
                        </ul>
                    </span>
            </div>
        </div>
    </div>
    <script>
        function logout() {
            ///user/logout
            $.ajax({
                type : 'POST',
                dataType : 'JSON',
                url : '/user/logout',
                data : {
                },
                success : function (result) {
                    if (result.code != 1000){
                        alert(result.message);
                        return;
                    }
                    alert('退出成功！');
                    window.location.href = '/page/toLogin';
                }
            });
        }
    </script>
</div>